<?php
$con=mysql_connect('localhost','root');
if(!$con)
{
	die('can not connect to db'.mysql_error());
}
$db=mysql_select_db('faran_db',$con);
{
if(!$db)
{
die('can not find db'.mysql_error());
}
}
?>